Skip to content

feat(rust,python,typescript): support harness_name in session creation#78

Merged
chaliy merged 1 commit intomainfrom
claude/process-ship-issue-77-Vvh2q
Apr 7, 2026
Merged

feat(rust,python,typescript): support harness_name in session creation#78
chaliy merged 1 commit intomainfrom
claude/process-ship-issue-77-Vvh2q

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 7, 2026

Summary

  • Add harness_name parameter to CreateSessionRequest across all SDKs (Rust, Python, TypeScript), enabling human-readable harness names (e.g. generic, deep-research) as the preferred alternative to opaque harness_id values
  • Client-side validation enforces pattern [a-z0-9]+(-[a-z0-9]+)*, max 64 chars, and mutual exclusion with harness_id
  • Backward compatible: existing harness_id usage remains unchanged

Closes #77

Test Plan

  • Tests pass locally (just test — 128 Python, 118 TypeScript, 113 Rust)
  • Linting passes (just lint)
  • Pre-push checks pass (just pre-push)

Checklist

  • Follows SDK API consistency guidelines
  • Updated relevant specs (if applicable)
  • Added/updated tests
  • Updated documentation (if applicable)

Add harness_name parameter to CreateSessionRequest across all SDKs,
allowing human-readable harness names (e.g. "generic", "deep-research")
as the preferred alternative to opaque harness_id values.

- Client-side validation: pattern [a-z0-9]+(-[a-z0-9]+)*, max 64 chars
- Mutual exclusion: harness_id and harness_name cannot both be set
- Backward compatible: existing harness_id usage unchanged
- Validation functions exported: validate_harness_name (all SDKs)
- Rust: Error::Validation variant for client-side validation errors

Closes #77
@chaliy chaliy merged commit 78c0abd into main Apr 7, 2026
18 of 19 checks passed
@chaliy chaliy deleted the claude/process-ship-issue-77-Vvh2q branch April 7, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support harness name in addition to harness ID (backward-compatible)

1 participant